package cn.jiyun.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * 短信日志(DailyRecord)表实体类
 *
 * @author makejava
 * @since 2024-12-20 11:38:50
 */
@TableName("daily_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DailyRecord {
    @TableId(type = IdType.AUTO)
//主键ID
    @ExcelProperty("主键ID")
    private Integer id;
    //用户ID
    @ExcelProperty("用户ID")
    private Integer userId;
    //是否回填1(是);2(否)
    @ExcelProperty("是否回填")
    private Integer backfill;
    @ExcelProperty("短信类型")
    //短信类型1(文本)；2(语音）
    private Integer note;
    //短信发出时间
    @ExcelProperty("短信发出时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime giveOutdate;
    //短信作用1(注册)；2(形成分享)；3(登录)；4(支付)；5(广告推送)
    @ExcelProperty("短信作用")
    private Integer noteEffect;
    //短信费用
    @ExcelProperty("短信费用")
    private BigDecimal noteCost;

    @ExcelIgnore
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime date1;
    @ExcelIgnore
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime date2;


}
